/*
 *  material.cpp
 *  EPPI-0.0
 *
 *  Created by Juan Carlos García Orden on 19/11/07.
 *
 */

#include "material.h"

Material::Material()
:	name(""),
	density(0.0),
	E(0.0),
	nu(0.0),
	mu(0.0),
	lambda(0.0),
	K(0.0),
	Ct()
{}

// ***

Material::Material(const string& n, const string & t)
:	name(n),
	type(t),
	density(0.0),
	E(0.0),
	nu(0.0),
	mu(0.0),
	lambda(0.0),
	K(0.0),
	I(3.0),
	II(3.0),
	III(1.0),
	J(1.0),
	Im(3.0),
	IIm(3.0),
	Jm(1.0),
	W(0.0),
	U(0.0),
	Ent(0.0),
	Temp(300),
	Wiso(0.0),
	Id(1),
	Id4(1)
{
	S.setZero(6);

	//cout << "Type= " << type << endl;
	if(!type.compare("viscoelastic"))
	{
		Qv.setZero(6);
	}

	Ct.setZero(6,6);
}



